package appfight.level;

import org.anddev.andengine.engine.camera.Camera;
import org.anddev.andengine.entity.scene.Scene;

import ResourceManager.ResourceManager;
import appfight.fileIOManager.TxtManager;
import appfight.scene.manager.SceneManager;
import braindamagestudio.com.app.fight.MainGameActivity;

public class GameLevel {
	
	public String LevelName;	
	public MainGameActivity _activity;
	public ResourceManager _resoruceManager;
	public SceneManager _sceneManager;
	public Camera _camera;
	public TxtManager _txtManager;
	
	public static String EndFightActivity = "GameLevelMap";
	public static int EndFightMusic = -1;
	
	public void Init(MainGameActivity activity,Scene scene,Camera camera)
	{
		_activity = activity;
		_resoruceManager = new ResourceManager(activity);
		_sceneManager = new SceneManager(scene);
		_txtManager = new TxtManager(activity);
		_camera = camera;
	}
	
	public void ConnectionCommand(String str)
	{
		
	}
	
	public void LevelDesign()
	{
		
	}
	
	public void ChangeLevel(String targetLevel)
	{
		_activity.ChangeLevel(targetLevel);
	}
	
	public void ChangeLevel(GameLevel targetLevel)
	{
		_activity.ChangeLevel(targetLevel);
	}
	
	public void UnloadScene()
	{
		_sceneManager.UnLoadAll();
	}
	
	public void UnloadResource()
	{
		_resoruceManager.ReleaseAll();
	}
}
